using Ellwood.Manage.Common.Core.Basis.ValidateRules;

namespace Ellwood.Manage.Common.ValiDataRules;

/// <summary>
/// 自定义验证特性，验证字段是否为数字
/// </summary>
public class EllValueIsNumAttribute: BaseAbstractAttribute
{
    
    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="message"></param>
    public EllValueIsNumAttribute(string? message) : base(message)
    {
    }

    public override (bool, string?) DoValidate(object oValue)
    {
        return (true, "");
    }
}